import { defHttp } from "/@/utils/http/axios";
/**
 * 获取信号检测结果列表
 */
export const get_signal = (params) => {
  return defHttp.get(
    {
      url: "/api/signal",
      params
    });
};


export const get_satelliteDate = (params) => {
  return defHttp.get(
    {
      url: "/api/satellite_dates",
      params
    });
};
/**
 * 获取设备列表
 */
export const get_modem = (params) => {
  return defHttp.get(
    {
      url: "/api/modem",
      params
    });
};
/**
 * 获取ip信息列表 
 */
export const get_ipinfo = (params) => {
  return defHttp.get(
    {
      url: "/api/ipinfo",
      params
    });
};
/**
 * 处理解析状态 
 */
export const set_custom = (params) => {
  return defHttp.get(
    {
      url: "/api/custom",
      params
    });
};
/**
* 获取信道列表
*/
export const get_channel = (params) => {
  return defHttp.get(
    {
      url: "/api/chn",
      params
    });
};
/**
* 获取710解调器设置1
*/
export const get_chnset1 = (params) => {
  return defHttp.get(
    {
      url: "/api/chnset/1",
      params
    });
};

// 获取射频通道
export const get_rfin = (params) => {
  return defHttp.get(
    {
      url: "/api/getrfin",
      params
    });
};


// 设置射频通道
export const set_rfin = (params) => {
  return defHttp.get(
    {
      url: "/api/setrfin",
      params
    });
};

// 文件路径
export const get_getconfig = (params) => {
  return defHttp.get(
    {
      url: "/api/getconfig",
      params
    });
};

// 输入框提交---desc
export const set_resultdesc = (params) => {
  return defHttp.get(
    {
      url: "/api/resultdesc",
      params
    });
};

// 输入框提交---favorite
export const set_resultfavorite = (params) => {
  return defHttp.get(
    {
      url: "/api/resultfavorite",
      params
    });
};

// 设置文件路径
export const set_setconfig = (params) => {
  return defHttp.get(
    {
      url: "/api/setconfig",
      params
    });
};

// 获取卫星名称
export const get_satname = (params) => {
  return defHttp.get(
    {
      url: "/api/satname",
      params
    });
};

// 获取卫星名称
export const get_hissignal = (params) => {
  return defHttp.get(
    {
      url: "/api/his_signal",
      params
    });
};

// 获取频谱数据
export const get_spec = (params) => {
  return defHttp.get(
    {
      url: "/api/his_spec",
      params
    });
};
// 保存卫星名
export const set_sat = (params) => {
  return defHttp.get(
    {
      url: "/api/setsat",
      params
    });
};
// 获取卫星名
export const get_satn = (params) => {
  return defHttp.get(
    {
      url: "/api/getsat",
      params
    });
};

/**
* 获取710解调器设置2
*/
export const get_outset = (params) => {
  return defHttp.get(
    {
      url: "/api/outset",
      params
    });
};
/**
* 获取710解调器设置3
*/
export const get_saveset = (params) => {
  return defHttp.get(
    {
      url: "/api/saveset",
      params
    });
};
/**
* 设置710解调器设置1
*/
export const set_chnset1 = (params) => {
  return defHttp.post(
    {
      url: "/api/chnset/1",
      params
    });
};
/**
* 设置710解调器设置2
*/
export const set_saveset = (params) => {
  return defHttp.post(
    {
      url: "/api/saveset",
      params
    });
};
/**
* 设置710解调器设置3
*/
export const set_outset = (params) => {
  return defHttp.post(
    {
      url: "/api/outset",
      params
    });
};

/**
* 获取650解调器设置
*/
export const get_chnset2 = (params) => {
  return defHttp.get(
    {
      url: "/api/chnset/2",
      params
    });
};
/**
* 设置650解调器设置
*/
export const set_chnset2 = (params) => {
  return defHttp.post(
    {
      url: "/api/chnset/2",
      params
    });
};

/**
* 载波列表收藏
*/
export const set_favorite = (params) => {
  return defHttp.get(
    {
      url: "/api/his_signal_favorite",
      params
    });
};

/**
* 载波列表备注
*/
export const set_desc = (params) => {
  return defHttp.get(
    {
      url: "/api/his_signal_desc",
      params
    });
};

/**
* 获取日志
*/
export const get_log = (params) => {
  return defHttp.get(
    {
      url: "/api/log",
      params
    });
};
/**
* 获取日志
*/
export const add_modem = (params) => {
  return defHttp.post(
    {
      url: "/api/addm",
      params
    });
};
/**
* 获取所有设置下拉信息
*/
export const get_term = (params) => {
  return defHttp.get(
    {
      url: "/api/term",
      params
    });
};
/**
* 获取策略信息
*/
export const get_rfinPoll = (params) => {
  return defHttp.get(
    {
      url: "/api/rfin_poll",
      params
    });
};
/**
* 修改策略
*/
export const set_rfinPoll = (params) => {
  return defHttp.post(
    {
      url: "/api/rfin_poll",
      params
    });
};
/**
* 删除设备
*/
export const del_modem = (params) => {
  return defHttp.delete(
    {
      url: "/api/rmm",
      params
    });
};



/**
* 获取扫描参数（参数：ip, rfin）
*/
export const get_scanparam = (params) => {
  return defHttp.get(
    {
      url: "/api/scanparam",
      params
    });
};

/**
* 获取扫描结果（参数：ip, rfin）
*/
export const get_scanresult = (params) => {
  return defHttp.get(
    {
      url: "/api/scanresult",
      params
    });
};

/**
* 获取扫描结果允许读信息（参数：ip, rfin）
*/
export const get_scanresultallow = (params) => {
  return defHttp.get(
    {
      url: "/api/scanresultallow",
      params
    });
};

/**
* 设置扫描参数（参数：ip, scan_mode, fec_lock_check, merger_lock_check, out_time）
*/
export const save_scanparam = (params) => {
  return defHttp.post(
    {
      url: "/api/scanparam",
      params
    });
};
/**
* 扫描结果配置到解调通道（参数：ip, chn, index）
*/
export const scanset = (params) => {
  return defHttp.post(
    {
      url: "/api/scanset",
      params
    });
};
/**
* 停止扫描（参数：ip, rfin）
*/
export const sscan = (params) => {
  return defHttp.post(
    {
      url: "/api/sscan",
      params
    });
};
/**
* 开始扫描（参数：ip, rfin, step, st, end, rs_mix）
*/
export const stscan = (params) => {
  return defHttp.post(
    {
      url: "/api/stscan",
      params
    });
};

/**
* 获取扫描结果允许读信息（参数：ip, rfin）
*/
export const get_record = (params) => {
  return defHttp.get(
    {
      url: "/api/record",
      params
    });
};

/**
* 开启或关闭通道（参数：ip,chn.ena）
*/
export const set_ena = (params) => {
  return defHttp.get(
    {
      url: "/api/ena",
      params
    });
};
/**
* 开启或关闭采集（参数：ip,chn.ena）
*/
export const set_status = (params) => {
  return defHttp.get(
    {
      url: "/api/status",
      params
    });
};
/**
 * 设置开关
 */
export const set_chn_switch = (params) => {
  return defHttp.get(
    {
      url: "/api/spec",
      params
    });
};
/**
 * 获取扫描时间
 */
export const get_inr = (params) => {
  return defHttp.get(
    {
      url: "/api/specinr",
      params
    });
};
/**
 * 设置扫描时间
 */
export const set_inr = (params) => {
  return defHttp.post(
    {
      url: "/api/specinr",
      params
    });
};
export const set_chn_type = (params) => {
  return defHttp.get(
    {
      url: "/api/chn_type",
      params
    });
};

export const set_signal_content = (params) => {
  return defHttp.get(
    {
      url: "/api/signal_content",
      params
    });
};